<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .component-allow-move {
            width: 100px;
            overflow: hidden;
            display: flex;
        }
        img {
            margin-left: -100px;
            width: 100px;
            height: 100px;
            transition: margin 2s;
        }
        .show-img {
            margin-left: 0;
        }
        .component-allow-move:hover img {
            margin-left: 0;
        }
    </style>
</head>
<body>
    
    <div class="component-allow-move">
        <img src="./allow.jpeg" alt="">
        <img class="show-img" src="./allow.jpeg" alt="">
    </div>

</body>
</html>